Adwaita: Fix a padding problem in action bars
authorMatthias Clasen <mclasen@redhat.com>
Sun, 14 Feb 2016 19:54:49 +0000 (14:54 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 14 Feb 2016 19:54:49 +0000 (14:54 -0500)
Padding adds up. A selector like "actionbar box" matches any box
inside an actionbar, so nested boxes accumulate more and more
padding. The intention clearly was to just give padding to the
topmost box that is the direct child of the actionbar's revealer.

https://bugzilla.gnome.org/show_bug.cgi?id=762036

gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index d2ecb8f29961d90b4cefbfd6fedd8d8a87ca8293..595124bd1e4c4448cc89059af7d027c28a95681c 100644 (file)
@@ -2817,7 +2817,7 @@ frame border,
   &:backdrop { border-color: $backdrop_borders_color; }
 }
 
-actionbar box {
+actionbar > revealer >  box {
   padding: 6px;
   border-width: 1px 0 0;
 }
index ddef74f673e318ecea5079992ca470db9bdc4fd5..5ffd77518d1eea5a4893f167504d014977ff1b7d 100644 (file)
@@ -3452,7 +3452,7 @@ frame border,
   .frame:backdrop {
     border-color: #1f2222; }
 
-actionbar box {
+actionbar > revealer > box {
   padding: 6px;
   border-width: 1px 0 0; }
 
index c8e241037eb309833c42189c5b97f089d65561dc..f82592ba108a4bc77bd6cd59a26deb801b902cad 100644 (file)
@@ -3585,7 +3585,7 @@ frame border,
   .frame:backdrop {
     border-color: #a5a5a1; }
 
-actionbar box {
+actionbar > revealer > box {
   padding: 6px;
   border-width: 1px 0 0; }